<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../node_modules/jquery/dist/jquery.js"></script>
    <script>
        $.holdReady(true);//暂停ready的执行
        // $(document).ready(function () {
        //
        // });
        $(function () {
            alert(1)
        });
    </script>
</head>
<body>
    <button>ready事件</button>
    <script>
            var btn = document.getElementsByTagName("button")[0];
            btn.onclick = function () {
                $.holdReady(false)
            }
    </script>

</body>
</html>